package com.lg.edu.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.mail.javamail.JavaMailSender;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

@Component
@ConfigurationProperties(prefix = "bdop.notify.mail")
@Data
public class EmailNotifierConfig {
    
    /** 默认发件人名称 */
    private String from;

    /** 默认收件人邮箱列表 */
    private String to;

    /** 默认抄送人邮箱列表 */
    private String copyTo;

    @Resource
    private JavaMailSender javaMailSender;

}
